import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/index.vue'
Vue.use(VueRouter)
const routes = [
	{
		path:'/',
		name:'index',
		component:Index,
		children:[
			{
				path:'/user',
				name:'user',
				component:() => import('../views/system/user/user.vue')
			},
			{
				path:'/menu',
				name:'menu',
				component:() => import('../views/system/menu/menu.vue')
			}
		]
	},
	{
		path:'/login',
		name:'login',
		component:() => import('../views/login.vue')
	},
	{
		path:'/handleLogin',
		name:'handleLogin',
		component:() => import('../views/handleLogin.vue')
	},
]
const router = new VueRouter({
	mode:'hash',
	routes
})
export default router